#include <iostream>

#include "While.hpp"

#include "Expression.hpp"
#include "ExpressionValue.hpp"

While::While(Expression* _condition,Instruction* _codeBoucle)
{
    condition = _condition;
    codeBoucle = _codeBoucle;
}

void While::execute()
{
   
}

void While::display(const unsigned int shift) const
{
    std::cout << "while (";
    condition->display();
    std::cout << ")\n";
    std::cout << "{\n";
        std::cout << "\t";
        codeBoucle->display();
        std::cout << "\n";
    std::cout << "}\n";
}

While::~While(){}
